package com.ossjk.oa.advisory.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 员工项目中间表
 * </p>
 *
 * @author chair
 * @since 2019-02-19
 */
public class Projectgroup extends BaseEntity<Projectgroup> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private String id;
    /**
     * 员工id
     */
    @TableField("eid")
    private String eid;
    /**
     * 项目id
     */
    @TableField("pid")
    private String pid;
    /**
     * 角色类型：1-组长、2-咨询、3-讲师
     */
    @TableField("type")
    private BigDecimal type;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getEid() {
        return eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public BigDecimal getType() {
        return type;
    }

    public void setType(BigDecimal type) {
        this.type = type;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Projectgroup{" +
        ", id=" + id +
        ", eid=" + eid +
        ", pid=" + pid +
        ", type=" + type +
        ", remarks=" + remarks +
        "}";
    }
}
